package com.design.pattern.behavior.strategy.general;

public class Context implements IStrategy{
    private IStrategy strategy;

    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }

    @Override
    public void algorithm() {
        //选择策略
        this.strategy.algorithm();
    }
}
